package o;

import android.content.Context;
import o.axa.h;

public class axh {
    public static int ˊ(Context context) {
        int i = 0;
        if (context == null) {
            awg.ˎ.ˏ("BranchIdUtil", "getUserProtocolBranchId context is null");
        } else {
            String ॱ = eqp.ॱ();
            if (eqp.ᐝ()) {
                ॱ = context.getResources().getString(h.ʿ);
            } else if (axe.ˏ(ॱ)) {
                ॱ = context.getResources().getString(h.ʾ);
            } else {
                ॱ = context.getResources().getString(h.ʼॱ);
            }
            try {
                i = Integer.parseInt(ॱ);
            } catch (NumberFormatException e) {
                awg.ˎ.ˊ("BranchIdUtil", "NumberFormatException");
            }
            awg.ˎ.ˋ("BranchIdUtil", "getUserProtocolBranchId branchId = " + i);
        }
        return i;
    }

    public static int ˏ(Context context) {
        int i = 0;
        if (context == null) {
            awg.ˎ.ˏ("BranchIdUtil", "getAppPrivacyBranchId context is null");
        } else {
            String ॱ = eqp.ॱ();
            if (eqp.ᐝ()) {
                ॱ = context.getResources().getString(h.ˎ);
            } else if (axe.ˏ(ॱ)) {
                ॱ = context.getResources().getString(h.ॱ);
            } else {
                ॱ = context.getResources().getString(h.ˏ);
            }
            try {
                i = Integer.parseInt(ॱ);
            } catch (NumberFormatException e) {
                awg.ˎ.ˊ("BranchIdUtil", "NumberFormatException");
            }
            awg.ˎ.ˋ("BranchIdUtil", "getAppPrivacyBranchId branchId = " + i);
        }
        return i;
    }
}
